package com.bookmngsys.dao;

import com.bookmngsys.entity.Book;
import com.bookmngsys.entity.Category;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.ArrayList;

/**
 * @author han
 */
public interface CategoryDao extends JpaRepository<Category, Integer> {

    @Query(value = "delete * from category where id = :id ", nativeQuery = true)
    void deleteByCategoryName(int id);


}
